package edu.wtbu.cs.androiddemo.activity.jump;

import android.os.Bundle;
import android.util.Log;

import androidx.activity.EdgeToEdge;
import androidx.appcompat.app.AppCompatActivity;
import androidx.core.graphics.Insets;
import androidx.core.view.ViewCompat;
import androidx.core.view.WindowInsetsCompat;

import edu.wtbu.cs.androiddemo.R;
import edu.wtbu.cs.androiddemo.activity.EventListenSampleActivity;


/**
 * ActivityLifeCycle 生命周期
 */
public class ActivityLifeCycleDemoActivity extends AppCompatActivity {
    public static String logTag = ActivityLifeCycleDemoActivity.class.getName();
    private static String lifeCycle = "ActivityLifeCycle生命周期";
    @Override
    protected void onCreate(Bundle savedInstanceState) {
        Log.i(logTag,lifeCycle+"onCreate");
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_life_cycle_demo);
    }

    @Override
    protected void onStart() {
        super.onStart();
        Log.i(logTag,lifeCycle+"onStart");
    }

    @Override
    protected void onStop() {
        super.onStop();
        Log.i(logTag,lifeCycle+"onStop");
    }

    @Override
    protected void onDestroy() {
        super.onDestroy();
        Log.i(logTag,lifeCycle+"onDestroy");
    }

    @Override
    protected void onPause() {
        super.onPause();
        Log.i(logTag,lifeCycle+"onPause");
    }

    @Override
    protected void onResume() {
        super.onResume();
        Log.i(logTag,lifeCycle+"onResume");
    }

    @Override
    protected void onRestart() {
        super.onRestart();
        Log.i(logTag,lifeCycle+"onRestart");
    }
}